<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('操作日志详细')" />
	<th:block th:include="include :: jsonview-css" />
	<style>
		#jsonResult{
			overflow:auto;
			white-space: pre-wrap;
		}
		body{
			width: 100%;
		}
	</style>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
	<form class="form-horizontal m-t" id="signupForm">
		<div class="form-group">
			<label class="control-label">请求详情:</label>
			<div class="table-responsive">
				<table class="table table-bordered table-striped">
					<tbody>
					<tr>
						<th>
							操作模块
						</th>
						<td th:text="${operLog.title} + ' / ' + ${@dict.getLabel('sys_oper_type',operLog.businessType)}"></td>
					</tr>
					<tr>
						<th>请求地址</th>
						<td  th:text="${operLog.operUrl}"></td>
					</tr>
					<tr>
						<th>请求方式</th>
						<td th:text="${operLog.requestMethod}"></td>
					</tr>
					<tr>
						<th>操作方法</th>
						<td th:text="${operLog.method}"></td>
					</tr>
					<tr>
						<th>状态</th>
						<td th:text="${operLog.status == 0 ? '正常' : '异常'}"></td>
					</tr>
					</tbody>
				</table>
			</div>
		</div>

		<div class="form-group">
			<label class=" control-label">请求参数：</label>
			<div class="form-control-static"><pre id="operParam"></pre></div>
		</div>
		<div class="form-group">
			<label class=" control-label">返回参数：</label>
			<div class="form-control-static"><pre id="jsonResult"></pre></div>
		</div>
		<div class="form-group" th:style="'display:' + ${operLog.status == 0 ? 'none' : 'block'}">
			<label class=" control-label">异常信息：</label>
			<div class="form-control-static" >
				<pre th:text="${operLog.errorMsg}"></pre>
			</div>
		</div>
	</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: jsonview-js" />
<script th:inline="javascript">
	$(function() {
		var operParam = [[${operLog.operParam}]];
		if ($.common.isNotEmpty(operParam) && operParam.length < 2000) {
			$("#operParam").JSONView(operParam);
		} else {
			$("#operParam").text(operParam);
		}
		var jsonResult = [[${operLog.jsonResult}]];
		if ($.common.isNotEmpty(jsonResult) && jsonResult.length < 2000) {
			$("#jsonResult").JSONView(jsonResult);
		} else {
			$("#jsonResult").text(jsonResult);
		}
	});
</script>
</body>
</html>